<?php
/* 
 *退货给供应商
 */
class Back_supplierAction extends TransAction {
    public function _filter(&$map) {
        $key = trim($_REQUEST['keywords']);
        if(!empty($key)) {
            $map['note'] = array('like',"%".$key."%");//备注信息
            $map['title'] = array('like',"%".$key."%");//锚文本
            $map['webname'] = array('like',"%".$key."%");//网站名称
            $map['url'] = array('like',"%".$key."%");//url
            $map['_logic'] = "or";
        }
    }
    
    public function _before_add(){
        parent::_before_add();
        $this->assign('suppliers',getModelIdName('Supplier','sort'));
    }
}
?>
